package com.pwser.service;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

import com.pwser.entity.Book;

@Service
public class BookService {
	
	@RabbitListener(queues = "queue_book")
	public void receive(Book book) {
		System.out.println("监听收到消息：" + book);
	}

}
